import request from '../js/request.js'

export function StarOne(postId,userId){
    return request({
        url:'/app/star/list',
        method:'get',
		params:{"pageNum":1,
				"pageSize":10,
				"orderByColumn":'id',
				"postId":postId,
				"userId":userId
				}
	})
}

export function StarList(userId){
    return request({
        url:'/app/star/list',
        method:'get',
		params:{"pageNum":1,
				"pageSize":10,
				"orderByColumn":'id',
				"userId":userId
				}
	})
}

export function addStar(data){
    return request({
        url:'/app/star/add',
        method:'post',
        data:data
    })
}

export function deleteStar(id){
    return request({
        url:'/app/star/'+id,
        method:'delete',
    })
}